//
//  FMNetwork.h
//  WindRunner
//
//  Created by leeqb on 6/10/14.
//
//

@class FMToast;

@interface FMNetwork : NSObject<NSURLConnectionDelegate, NSURLConnectionDataDelegate>
{
    NSURLResponse       *_response;
    NSMutableData       *_data;
    
    FMToast             *_toastLoading;
}

@property (nonatomic, retain) FMRequestObject *requestObj;
@property (nonatomic, assign) BOOL showMask;
@property (nonatomic, assign) void (^success)(NSDictionary *data);
@property (nonatomic, assign) void (^failed)(NSError *error);

+ (void)request:(FMRequestObject *)request showMask:(BOOL)showMask success:(void (^)(NSDictionary *data))success falied:(void (^)(NSError *error))failed;

@end
